<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
<script>
	var APP_NAME = "{$ts['app']['app_alias']}";
</script>
<div class="content no_bg">
<include file="../Public/_mainNav" />
  <div class="main no_l">
    <div class="mainbox"> 
      <include file="../Public/_isHotList" />
      <div class="mainbox_appC">
		<div class="tab-menu"><!-- 切换标签 begin  -->
		<ul>
			<li><a href="{:U('/Upload/index')}" class="on"><span>普通上传</span></a></li>
			<li><a href="{:U('/Upload/flash')}"><span>批量上传</span></a></li>
			<if condition="$setting['open_camera'] eq 1"><li><a href="{:U('/Upload/camera')}"><span>在线拍照</span></a></li></if>
            <li><a href="{:U('/Index/photos')}"><span>返回我的图片</span></a></li>
        </ul>
		</div><!-- 切换标签 end  -->
		
		<div class="photoBox">
        	<form method="post" action="{:U('/Upload/upload_muti_pic')}" enctype="multipart/form-data" name="upload_single_pic" id="upload_single_pic" onsubmit="return start_upload();">
			<div class="upload">
			<ul>
        	<li>
            	<div class="c1">选择图片{$ts['app']['app_alias']}：</div>
              	<div class="c2">
				{:W('AlbumList',array( 'uid'=>$mid , 'form_name'=>'albumId' , 'selected'=>intval($_GET['albumId']) ) )}
                <a href="javascript:create_album_tab({$mid});">[创建{$ts['app']['app_alias']}]</a>
            	</div>
        	</li>
            <li>
            	<div class="c1">图片1：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_1" /></div>
        	</li>
            <li>
              	<div class="c1">图片2：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_2" /></div>
        	</li>
            <li>
             	<div class="c1">图片3：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_3" /></div>
        	</li>
            <li>
              	<div class="c1">图片4：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_4" /></div>
        	</li>
            <li>
              	<div class="c1">图片5：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_5" /></div>
        	</li>
            <li>
              	<div class="c1">图片6：</div>
                <div class="c2"><input type="file" name="fileField[]" id="fileField_6" /></div>
        	</li>
            <li>
              	<div class="c1">&nbsp;</div>
                <div class="c2"><input type="submit" id="submit_button" class="btn_b" value="上传图片" />
                </div>
        	</li>
        	</ul>
       		<div class="clue">
          		<p>严禁上传色情、暴力、恐怖、反动等违法图片！</p>
       			<span class="clue_btm"></span>
     		</div>
    		</div>
   			</form>
        </div>  
		 <div class="c"></div>
		</div></div> <!-- 右侧内容 end  -->
</div><!-- 内容 end -->
</div>
<include file="__THEME__/footer" />
<script src="../Public/js/album.js" type="text/javascript"></script>
<script type="text/javascript">
function start_upload() {
	//必须选一个文件
	var	files = document.getElementsByName('fileField[]');
	var checked_files=0;
	for	(i=0; i < files.length; i++)
	{
		if(files[i].value!=''){
			checked_files++;
		}
	}
	if(checked_files>0){
		$('#submit_button').attr('disabled',true).val("上传中...");
		return true;
	}else{
		alert('请至少选择一个文件上传！');
		return false;
	}
	return false;
}
</script>